package com.oracle.entity;

import com.oracle.pojo.Book;
import org.springframework.stereotype.Component;

import java.io.Serializable;


public class CartItem implements Serializable {
    private Book book;
    private Integer num;

    public CartItem() {
    }

    public CartItem(Book book, Integer num) {
        this.book = book;
        this.num = num;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "CartItem{" +
                "book=" + book +
                ", num=" + num +
                '}';
    }
}
